Optimal. Leaf size=521 \[ -\frac {2 (a-b) \sqrt {a+b} \left (161 a^2 b B+63 b^3 B+15 a^3 C+5 a b^2 (49 A+29 C)\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{105 b^2 d}+\frac {2 \sqrt {a+b} \left (15 a^3 (7 B-C)+b^3 (35 A-63 B+25 C)+a^2 b (315 A-161 B+135 C)-a b^2 (245 A-119 B+145 C)\right ) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{105 b d}-\frac {2 a^2 A \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}+\frac {2 \left (35 A b^2+56 a b B+15 a^2 C+25 b^2 C\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 (7 b B+5 a C) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 C (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.66, antiderivative size = 521, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 6, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {4141, 4143,
4006, 3869, 3917, 4089} \begin {gather*} -\frac {2 a^2 A \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{d}+\frac {2 \tan (c+d x) \left (15 a^2 C+56 a b B+35 A b^2+25 b^2 C\right ) \sqrt {a+b \sec (c+d x)}}{105 d}+\frac {2 \sqrt {a+b} \cot (c+d x) \left (15 a^3 (7 B-C)+a^2 b (315 A-161 B+135 C)-a b^2 (245 A-119 B+145 C)+b^3 (35 A-63 B+25 C)\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{105 b d}-\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \left (15 a^3 C+161 a^2 b B+5 a b^2 (49 A+29 C)+63 b^3 B\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{105 b^2 d}+\frac {2 (5 a C+7 b B) \tan (c+d x) (a+b \sec (c+d x))^{3/2}}{35 d}+\frac {2 C \tan (c+d x) (a+b \sec (c+d x))^{5/2}}{7 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3869
Rule 3917
Rule 4006
Rule 4089
Rule 4141
Rule 4143
Rubi steps
\begin {align*} \int (a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {2 C (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\frac {2}{7} \int (a+b \sec (c+d x))^{3/2} \left (\frac {7 a A}{2}+\frac {1}{2} (7 A b+7 a B+5 b C) \sec (c+d x)+\frac {1}{2} (7 b B+5 a C) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 (7 b B+5 a C) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 C (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\frac {4}{35} \int \sqrt {a+b \sec (c+d x)} \left (\frac {35 a^2 A}{4}+\frac {1}{4} \left (70 a A b+35 a^2 B+21 b^2 B+40 a b C\right ) \sec (c+d x)+\frac {1}{4} \left (35 A b^2+56 a b B+15 a^2 C+25 b^2 C\right ) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 \left (35 A b^2+56 a b B+15 a^2 C+25 b^2 C\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 (7 b B+5 a C) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 C (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\frac {8}{105} \int \frac {\frac {105 a^3 A}{8}+\frac {1}{8} \left (105 a^3 B+119 a b^2 B+45 a^2 b (7 A+3 C)+5 b^3 (7 A+5 C)\right ) \sec (c+d x)+\frac {1}{8} \left (161 a^2 b B+63 b^3 B+15 a^3 C+5 a b^2 (49 A+29 C)\right ) \sec ^2(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=\frac {2 \left (35 A b^2+56 a b B+15 a^2 C+25 b^2 C\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 (7 b B+5 a C) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 C (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\frac {8}{105} \int \frac {\frac {105 a^3 A}{8}+\left (\frac {1}{8} \left (105 a^3 B+119 a b^2 B+45 a^2 b (7 A+3 C)+5 b^3 (7 A+5 C)\right )+\frac {1}{8} \left (-161 a^2 b B-63 b^3 B-15 a^3 C-5 a b^2 (49 A+29 C)\right )\right ) \sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx+\frac {1}{105} \left (161 a^2 b B+63 b^3 B+15 a^3 C+5 a b^2 (49 A+29 C)\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=-\frac {2 (a-b) \sqrt {a+b} \left (161 a^2 b B+63 b^3 B+15 a^3 C+5 a b^2 (49 A+29 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{105 b^2 d}+\frac {2 \left (35 A b^2+56 a b B+15 a^2 C+25 b^2 C\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 (7 b B+5 a C) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 C (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\left (a^3 A\right ) \int \frac {1}{\sqrt {a+b \sec (c+d x)}} \, dx+\frac {1}{105} \left (15 a^3 (7 B-C)+b^3 (35 A-63 B+25 C)+a^2 b (315 A-161 B+135 C)-a b^2 (245 A-119 B+145 C)\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=-\frac {2 (a-b) \sqrt {a+b} \left (161 a^2 b B+63 b^3 B+15 a^3 C+5 a b^2 (49 A+29 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{105 b^2 d}+\frac {2 \sqrt {a+b} \left (15 a^3 (7 B-C)+b^3 (35 A-63 B+25 C)+a^2 b (315 A-161 B+135 C)-a b^2 (245 A-119 B+145 C)\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{105 b d}-\frac {2 a^2 A \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}+\frac {2 \left (35 A b^2+56 a b B+15 a^2 C+25 b^2 C\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 (7 b B+5 a C) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 C (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(1401\) vs. \(2(521)=1042\).
time = 21.04, size = 1401, normalized size = 2.69 \begin {gather*} -\frac {4 (a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \sqrt {\frac {1}{1-\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \left (245 a^2 A b^2 \tan \left (\frac {1}{2} (c+d x)\right )+245 a A b^3 \tan \left (\frac {1}{2} (c+d x)\right )+161 a^3 b B \tan \left (\frac {1}{2} (c+d x)\right )+161 a^2 b^2 B \tan \left (\frac {1}{2} (c+d x)\right )+63 a b^3 B \tan \left (\frac {1}{2} (c+d x)\right )+63 b^4 B \tan \left (\frac {1}{2} (c+d x)\right )+15 a^4 C \tan \left (\frac {1}{2} (c+d x)\right )+15 a^3 b C \tan \left (\frac {1}{2} (c+d x)\right )+145 a^2 b^2 C \tan \left (\frac {1}{2} (c+d x)\right )+145 a b^3 C \tan \left (\frac {1}{2} (c+d x)\right )-490 a^2 A b^2 \tan ^3\left (\frac {1}{2} (c+d x)\right )-322 a^3 b B \tan ^3\left (\frac {1}{2} (c+d x)\right )-126 a b^3 B \tan ^3\left (\frac {1}{2} (c+d x)\right )-30 a^4 C \tan ^3\left (\frac {1}{2} (c+d x)\right )-290 a^2 b^2 C \tan ^3\left (\frac {1}{2} (c+d x)\right )+245 a^2 A b^2 \tan ^5\left (\frac {1}{2} (c+d x)\right )-245 a A b^3 \tan ^5\left (\frac {1}{2} (c+d x)\right )+161 a^3 b B \tan ^5\left (\frac {1}{2} (c+d x)\right )-161 a^2 b^2 B \tan ^5\left (\frac {1}{2} (c+d x)\right )+63 a b^3 B \tan ^5\left (\frac {1}{2} (c+d x)\right )-63 b^4 B \tan ^5\left (\frac {1}{2} (c+d x)\right )+15 a^4 C \tan ^5\left (\frac {1}{2} (c+d x)\right )-15 a^3 b C \tan ^5\left (\frac {1}{2} (c+d x)\right )+145 a^2 b^2 C \tan ^5\left (\frac {1}{2} (c+d x)\right )-145 a b^3 C \tan ^5\left (\frac {1}{2} (c+d x)\right )-210 a^3 A b \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-210 a^3 A b \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \tan ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+(a+b) \left (161 a^2 b B+63 b^3 B+15 a^3 C+5 a b^2 (49 A+29 C)\right ) E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-b \left (-15 a^3 (7 A-7 B-C)+b^3 (35 A+63 B+25 C)+a^2 b (315 A+161 B+135 C)+a b^2 (245 A+119 B+145 C)\right ) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}\right )}{105 b d (b+a \cos (c+d x))^{5/2} (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x)) \sec ^{\frac {9}{2}}(c+d x) \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )^{3/2} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{1+\tan ^2\left (\frac {1}{2} (c+d x)\right )}}}+\frac {\cos ^4(c+d x) (a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {4 \left (245 a A b^2+161 a^2 b B+63 b^3 B+15 a^3 C+145 a b^2 C\right ) \sin (c+d x)}{105 b}+\frac {4}{35} \sec ^2(c+d x) \left (7 b^2 B \sin (c+d x)+15 a b C \sin (c+d x)\right )+\frac {4}{105} \sec (c+d x) \left (35 A b^2 \sin (c+d x)+77 a b B \sin (c+d x)+45 a^2 C \sin (c+d x)+25 b^2 C \sin (c+d x)\right )+\frac {4}{7} b^2 C \sec ^2(c+d x) \tan (c+d x)\right )}{d (b+a \cos (c+d x))^2 (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x))} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(5137\) vs.
\(2(478)=956\).
time = 0.64, size = 5138, normalized size = 9.86
method | result | size |
default | \(\text {Expression too large to display}\) | \(5138\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sec {\left (c + d x \right )}\right )^{\frac {5}{2}} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________